\documentclass[spanish,a4paper]{article} 

\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
%\usepackage{bbm}
\usepackage{framed}
\usepackage{caratula}
\usepackage{listings}
\input{macrosAlgo1}

\newcommand{\comen}[2]{%

\begin{framed}

\noindent \textsf{#1:} #2

\end{framed}

}

\begin{document}

\input{caratula.tex}

% Titulos

%\materia{Algoritmos y Estructura de Datos I}
\materia{Algoritmos y Estructuras de Datos I}

\cuatrimestre{2}

\anio{2011}

\fecha{21 de noviembre de 2011}

\nombre{TPI: Esemeseando v3.0}

\titulotp

% Seccion con los tipos definidos

\lstset{numbers=left,
numberstyle=\footnotesize,      % the size of the fonts that are used for the line-numbers
stepnumber=1,                   % the step between two line-numbers. If it's 1, each line 
                                % will be numbered
numbersep=5pt,                  % how far the line-numbers are from the code
frame=single,                  % adds a frame around the code
tabsize=4,                      % sets default tabsize to 4 spaces
}


\section{Aclaraciones}

\input{notas.tex}

\clearpage

\section{Clase SMS}

\subsection{Header}

\lstinputlisting{../source/sms.h}

\subsection{Source}

\lstinputlisting{../source/sms.cpp}

\clearpage

\section{Clase Pregunta}

\subsection{Header}

\lstinputlisting{../source/pregunta.h}

\subsection{Source}

\lstinputlisting{../source/pregunta.cpp}

\clearpage

\section{Clase Trivia}

\subsection{Header}

\lstinputlisting{../source/trivia.h}

\subsection{Source}

\lstinputlisting{../source/trivia.cpp}

\clearpage

\section{Clase Gateway}

\subsection{Header}

\lstinputlisting{../source/gateway.h}

\subsection{Source}

\lstinputlisting{../source/gateway.cpp}

\clearpage

\section{Clase Telco}

\subsection{Header}

\lstinputlisting{../source/telco.h}

\subsection{Source}

\lstinputlisting{../source/telco.cpp}

\clearpage

\section{Auxiliares}

\subsection{Header}

\lstinputlisting{../source/auxiliares.h}

\subsection{Source}

\lstinputlisting{../source/auxiliares.cpp}

\end{document}
